#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include <gtk/gtk.h>

#include "callbacks.h"
#include "interface.h"
#include "support.h"


void
on_button1_clicked                     (GtkWidget       *button,
                                        gpointer         user_data)
{

}


void
on_button6_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button5_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button4_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button3_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button2_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button8_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button9_clicked                     (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button11_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button12_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button15_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button14_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button13_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button18_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button16_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button17_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button23_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button22_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button26_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button28_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button33_clicked                    (GtkWidget       *button,
                                        gpointer         user_data)
{
GtkWidget *Ajouter_Personnel;
	Ajouter_Personnel = create_Ajouter_Personnel();
 	 gtk_widget_show (Ajouter_Personnel);
}


void
on_button32_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button34_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button31_clicked                    (GtkWidget       *button,
                                        gpointer         user_data)
{
GtkWidget *Recherche_Personnel;
	Recherche_Personnel = create_Recherche_Personnel();
 	 gtk_widget_show (Recherche_Personnel);
}


void
on_button30_clicked                    (GtkWidget       *button,
                                        gpointer         user_data)
{
GtkWidget *Modifier_Personnel;
	Modifier_Personnel = create_Modifier_Personnel();
 	 gtk_widget_show (Modifier_Personnel);
}


void
on_button35_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button36_clicked                    (GtkWidget       *objet_graphique,
                                        gpointer         user_data)
{
personnel P;
	

	GtkWidget *entry37;
	GtkWidget *entry34;
	GtkWidget *entry36;
	GtkWidget *entry35;
	GtkWidget *entry38;
	GtkWidget *entry45;
	GtkWidget *entry46;
	GtkWidget *entry40;
	GtkWidget *entry44;
	GtkWidget *entry39;
	GtkWidget *entry43;
        GtkWidget *entry42;
        GtkWidget *entry41;
        GtkWidget *entry47;

	entry37 = lookup_widget(objet_graphique, "entry37");
	entry34 = lookup_widget(objet_graphique, "entry34");
	entry36 = lookup_widget(objet_graphique, "entry36");
	entry35 = lookup_widget(objet_graphique, "entry35");
	//entry38 = lookup_widget(objet_graphique, "entry38");
	entry45 = lookup_widget(objet_graphique, "entry45");
	entry46 = lookup_widget(objet_graphique, "entry46");
	entry40 = lookup_widget(objet_graphique, "entry40");
	entry44 = lookup_widget(objet_graphique, "entry44");
	entry39 = lookup_widget(objet_graphique, "entry39");
        entry43 = lookup_widget(objet_graphique, "entry43");
	entry42 = lookup_widget(objet_graphique, "entry42");
	entry41 = lookup_widget(objet_graphique, "entry41");
	entry47 = lookup_widget(objet_graphique, "entry47");
	
	P.IDN = atoi(gtk_entry_get_text(GTK_ENTRY(entry37)));
	strcpy(P.nom, gtk_entry_get_text(GTK_ENTRY(entry34)));
	strcpy(P.prenom, gtk_entry_get_text(GTK_ENTRY(entry36)));
	
	P.sexe = atoi( gtk_entry_get_text(GTK_ENTRY(entry35)));
	strcpy(P.cin,gtk_entry_get_text(GTK_ENTRY(entry45)));
     strcpy(P.profession, gtk_entry_get_text(GTK_ENTRY(entry46)));
strcpy(P.adresse_couriel, gtk_entry_get_text(GTK_ENTRY(entry40)));

strcpy(P.pays, gtk_entry_get_text(GTK_ENTRY(entry44)));
strcpy(P.nationalite, gtk_entry_get_text(GTK_ENTRY(entry39)));

strcpy(P.maladie, gtk_entry_get_text(GTK_ENTRY(entry43)));
strcpy(P.sang, gtk_entry_get_text(GTK_ENTRY(entry42)));
P.etat = atoi( gtk_entry_get_text(GTK_ENTRY(entry41)));
P.cellulaire=atoi(gtk_entry_get_text(GTK_ENTRY(entry47)));
	
	ajouter_personnel(fpersonnel);
}
}


void
on_button37_clicked                    (GtkWidget       *button,
                                        gpointer         user_data)
{
GtkWidget *Gestion_Personnel;
	Gestion_Personnel = create_Gestion_Personnel();
 	 gtk_widget_show (Gestion_Personnel);
}


void
on_button42_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button46_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button45_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button47_clicked                    (GtkWidget       *button,
                                        gpointer         user_data)
{
GtkWidget *Gestion_Personnel;
	Gestion_Personnel = create_Gestion_Personnel ();
 	 gtk_widget_show (Gestion_Personnel);
}


void
on_button51_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button52_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button53_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button49_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button50_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button48_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button58_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button59_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button61_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button63_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button64_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button66_clicked                    (GtkWidget       *button,
                                        gpointer         user_data)
{
GtkWidget *Gestion_Personnel;
	Gestion_Personnel = create_Gestion_Personnel ();
 	 gtk_widget_show (Gestion_Personnel);
}


void
on_button67_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button68_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button70_clicked                    (GtkWidget       *button,
                                        gpointer         user_data)
{
GtkWidget *Menu_Principale;
	Menu_Principale = create_Menu_Principale ();
 	 gtk_widget_show (Menu_Principale);
}


void
on_button69_clicked                    (GtkWidget       *button,
                                        gpointer         user_data)
{
GtkWidget *Gestion_Personnel;
	Gestion_Personnel = create_Gestion_Personnel ();
 	 gtk_widget_show (Gestion_Personnel);
}


void
on_button72_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button73_clicked                    (GtkButton       *button,
                                        gpointer         user_data)
{

}


void
on_button79_clicked                    (GtkWidget       *button,
                                        gpointer         user_data)
{
GtkWidget *Menu_Principale;
	Menu_Principale = create_Menu_Principale ();
 	 gtk_widget_show (Menu_Principale);
}


void
on_button78_clicked                    (GtkWidget       *button,
                                        gpointer         user_data)
{
GtkWidget *Gestion_Administrateur;
	Gestion_Administrateur = create_Gestion_Administrateur ();
 	 gtk_widget_show (Gestion_Administrateur);
}


void
on_button77_clicked                    (GtkWidget       *button,
                                        gpointer         user_data)
{
GtkWidget *Gestion_Super_Administrateur;
	Gestion_Super_Administrateur= create_Gestion_Super_Administrateur ();
 	 gtk_widget_show (Gestion_Super_Administrateur);
}


void
on_button82_clicked                    (GtkWidget       *button,
                                        gpointer         user_data)
{
GtkWidget *Menu_Principale;
	Menu_Principale = create_Menu_Principale ();
 	 gtk_widget_show (Menu_Principale);
}

